package com.four.live.fegin;

import com.guli.common.vo.UserVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author:wsy
 * @Date: 2021/12/24/18:39
 * @Description
 */
@FeignClient("four-user")
@RequestMapping("user")
public interface UserFeginService {
    /**
     * 根据登录人查询
     * @param loginName
     * @return
     */
    @GetMapping("/user/findByUname/{loginName}")
    public UserVo findByUname(@PathVariable("loginName")String loginName);
}
